#include "List.h"

//void Test1()
//{
//	ListNode* plist = InitList();
//	ListPushBack(plist, 1);
//	ListPushBack(plist, 2);
//	ListPushBack(plist, 3);
//	ListPushBack(plist, 4);
//	ListPrint(plist);
//	ListPopBack(plist);
//	ListPrint(plist);
//	//ListDestory(plist);
//	ListPushFront(plist, 10);
//	ListPushFront(plist, 20);
//	ListPrint(plist);
//	ListPopFront(plist);
//	ListPrint(plist);
//
//}

void Test2()
{
	ListNode* plist = InitList();
	//ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	ListPrint(plist);
	ListNode* pos=ListFind(plist, 2);
	ListInsert(pos, 10);
	ListPrint(plist);
	ListErase(pos);
	ListPrint(plist);



}

int main()
{
	Test2();
	return 0;
}